package org.jeecg.modules.erp.goods.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.erp.goods.entity.ErpGoodsSupplier;
import org.jeecg.modules.erp.goods.vo.ErpGoodsSupplierVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Description: 物料供应商
 * @Author: jeecg-boot
 * @Date:   2024-06-11
 * @Version: V1.0
 */
public interface IErpGoodsSupplierService extends IService<ErpGoodsSupplier> {

	/**
	 * 通过主表id查询子表数据
	 *
	 * @param mainId 主表id
	 * @return List<ErpGoodsSupplier>
	 */
	public List<ErpGoodsSupplier> selectByMainId(String mainId);

	IPage<ErpGoodsSupplierVo> myPage(Page<ErpGoodsSupplierVo> page , ErpGoodsSupplierVo model);

	public void addSave(ErpGoodsSupplierVo goodsSupplierVo, HttpServletRequest req);


}
